package com.pocket.insight.base.sql.visitor.oracle;

import com.alibaba.druid.sql.dialect.oracle.ast.stmt.OracleSelectTableReference;
import com.alibaba.druid.sql.dialect.oracle.visitor.OracleASTVisitorAdapter;

/**
 * 描述：
 *
 * @author shuize
 * @create 2024/12/14
 */
public class AddDbPrefixOracleVisitor extends OracleASTVisitorAdapter implements AddDbPrefixVisitor {
    private String tablePrefix;

    public AddDbPrefixOracleVisitor(String tablePrefix) {
        this.tablePrefix = tablePrefix;
    }

    @Override
    public boolean visit(OracleSelectTableReference x) {
        return this.visitAndAddDbPrefix(x, this.tablePrefix);
    }

}
